package com.qfmy.model.entity.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity
 * @date 2025/4/13
 * @description 日志记录实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class Log {

    @Schema(description = "日志ID")
    private Integer id;

    @Schema(description = "操作的名称")
    private String operateName;

    @Schema(description = "操作的用户")
    private String username;

    @Schema(description = "操作时间")
    private LocalDateTime operateTime;

    @Schema(description = "操作的结果 0:成功 1:失败")
    private Boolean operateResult;

    @Schema(description = "失败的原因")
    private String operateFailReason;

    @Schema(description = "执行的时间（毫秒）")
    private Long time;
}